﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 设备
    /// </summary>
    [Table("T_Device")]
    public class Device:BaseEntity
    {
        /// <summary>
        /// 设备编码
        /// </summary>
        [MaxLength(50)]
        public string Code { get; set; }
        /// <summary>
        /// 设备名称
        /// </summary>
        [MaxLength(20)]
        public string Name { get; set; }
        /// <summary>
        /// 设备类型：1-AGV
        /// </summary>
        public int DeviceType { get; set; }
        /// <summary>
        /// 状态：0-禁用；1-正常；2-异常
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 异常说明
        /// </summary>
        public string ExceptionMsg { get; set; }
        /// <summary>
        /// 异常时间
        /// </summary>
        public DateTime? ExceptionDate { get; set; }
      
        public string WarehouseCode { get; set; }
        /// <summary>
        /// 库房Id
        /// </summary>
        public long? WarehouseId { get; set; }
        public string WarehouseName { get; set; }
    }
}
